package com.baidu.cmsCommes.pojo;

import lombok.Data;

import java.util.List;

/**
 * @Author: BSS
 * @create: 2020/6/17/20:46
 */
@Data
public class Pager<T> {
    /**
     * 分页大小
     */
    private Integer size;
    /**
     * 分页起始页
     */
    private Integer offset;
    /**
     * 总记录数
     */
    private Integer total;
    /**
     * 分页数据
     */
    private List<T> datas;

    public Pager() {
    }

    public Pager(Integer size, Integer offset, Integer total, List<T> datas) {
        this.size = size;
        this.offset = offset;
        this.total = total;
        this.datas = datas;
    }
}
